import React, { memo } from "react";
import UserCard from "@/components/UserCard";
import { useGetUserList } from "@/hooks/useGetUserList";
import SeekerWrapper from "./style";

const Seeker = memo((props) => {
  let list = useGetUserList({ type: "seeker" });
  return (
    <SeekerWrapper>
      {list.length ? (
        <UserCard userList={list}></UserCard>
      ) : (
        <div>"暂无内容"</div>
      )}
    </SeekerWrapper>
  );
});

export default Seeker;
